import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

import java.util.Scanner;

public class Test {

        private static void testMethod(){

            System.out.println("testMethod");

        }

        public static void main(String[] args) {

            ((Test)null).testMethod();

        }



    public static void main7(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个数字：");
        int num = scanner.nextInt();
        //奇数
        for(int i = 31;i > 0;i -= 2) {
            System.out.print((num>>i)&1);
        }
        System.out.println();

        for(int j = 30;j >= 0; j -= 2) {
            System.out.print((num>>j)&1);
        }
        System.out.println();
    }



    public static void main6(String[] args) {
        String name = "account";
        String pwd = "123456";
        int n = 3;
        while(n>0) {
            Scanner scanner = new Scanner(System.in);
            System.out.println("请输入你的用户名：");
            String username = scanner.nextLine();
            System.out.println("请输入你的密码：");
            String password = scanner.nextLine();
            if(name.equals(username) && pwd.equals(password)) {
                System.out.println("登录成功");
                break;
            }
            else {
                System.out.println("登录失败，你还有" + (n-1) + "次机会输入");
            }
            n--;
        }
    }



    public static void main5(String[] args) {
        int num = 123;
        while(num>0)
        {
            int n = num%10;
            System.out.print(n+" ");
            num = num/10;
        }
    }



    //n*n乘法口诀表，输入n
    public static void main4(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(int i = 1; i <= n; i++) {
            for(int j = 1; j <= i; j++) {
                System.out.print(i+"*"+j+"="+i*j + "   ");
            }
            System.out.println();
        }
    }


    //数字9出现的次数
    public static void main3(String[] args) {
        int count = 0;
        for(int i = 1;i <= 100;i++) {
            if(i%10 == 9) {
                count++;
            }
            if((i/10)%10 == 9 ) {
                count++;
            }
        }
        System.out.println(count);
    }


    public static void main2(String[] args) {
        int count = 0;
        for(int i = 1000;i<=2000;i++) {
            if(((i % 4 == 0) && (i % 100 != 0))||(i % 400 == 0)) {
                count++;
                System.out.print(i+" ");
            }
        }
        System.out.println();
        System.out.println(count);
    }


    public static void main1(String[] args) {
        int j = 2;
        for(int i = 1 ;i <= 100;i += 2) {
            for(j = 2;j <= Math.sqrt(i); j++) {
                if(i % j == 0) {
                   break;
                }
            }
            if(j>Math.sqrt(i)) {
                System.out.print(i + " ");
            }
        }
    }
}
